package com.project.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

/**
 * 退货订单实体
 */
@Data
@TableName("t_return")
public class ReturnBean {
    /**
     * 退货订单实体id
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long id;

    /**
     * 退货订单编号
     */
    @TableField("r_returnId")
    private String returnId;

    /**
     * 供应商id
     */
    @TableField("fk_supplierId")
    private Long supplierId;
    /**
     * 供货批次号
     */
    @TableField("r_batch")
    private String batch;

    /**
     * 退货时间
     */
    @TableField("r_time")
    private LocalDateTime time;

    /**
     * 状态
     */
    @TableField("r_status")
    private Integer status;

    /**
     * 退货原因
     */
    @TableField("r_reason")
    private String reason;

    /**
     * 商品总价
     */
    @TableField("r_price")
    private Double sumPrice;
    @TableField(exist = false)
    private List<GoodsBean> goodsList;

}
